cmake_minimum_required(VERSION 3.5)
project(YOLOv5)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIR})

add_library(yololib SHARED yolo.cpp)
target_link_libraries(yololib ${OpenCV_LIBS})

add_executable(detect_avi detect_avi.cpp)
target_link_libraries(detect_avi yololib)

add_executable(detect_img detect_img.cpp)
target_link_libraries(detect_img yololib)


add_executable(detect_img2avi detect_img2avi.cpp)
target_link_libraries(detect_img2avi yololib)



